﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class RankMaping : EntityTypeConfiguration<Rank>
    {

        public RankMaping()
        {
            // Primary Key
            this.HasKey(t => t.ID);


            // Table & Column Mappings
            this.ToTable("RanksMA");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.English).HasColumnName("English");
            this.Property(t => t.Arabic).HasColumnName("Arabic");
          }
    }
}